package internal

import (
	"game-server/base"
	"game-server/log"
	"game-server/msg"
)


/**
 *
 * 修改状态
 * @param args
 * @return
 */
func handelEggBoom(roomId int32 ,boomId int32 , args []interface{}) {
	// 收到的 修改状态 消息
	log.Debug("handelEggBoom roomID is:",roomId)
	log.Debug("handelEggBoom ,boomId is:",boomId)

	room := base.Get("room", boomId).(base.Pk)
	EggBoomInfo := &msg.MsgEggBoomS2C{
		RoomId:    roomId,
		BoomId: boomId,
		RewardType:room.RewardType,
		Value:room.Value,
	}

	for _,roomPlayerInfo := range room.Players{
		base.InitConn[roomPlayerInfo.PlayerId].WriteMsg(EggBoomInfo)
	}

}
